using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools._Administration
{
    /// <summary>
    /// <para>Delete Rule</para>
    /// <para>Permanently deletes a rule from a utility network.</para>
    /// <para>从公共设施网络中永久删除规则。</para>
    /// </summary>    
    [DisplayName("Delete Rule")]
    public class DeleteRule : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public DeleteRule()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Utility Network</para>
        /// <para>The utility network for which the rule will be removed.</para>
        /// <para>将移除其规则的公共设施网络。</para>
        /// </param>
        /// <param name="_rule_type">
        /// <para>Rule Type</para>
        /// <para><xdoc>
        ///   <para>The type of rule being deleted.</para>
        ///   <bulletList>
        ///     <bullet_item>All—Delete all rules.</bullet_item><para/>
        ///     <bullet_item>Junction-junction connectivity—Delete a junction-junction connectivity association rule.</bullet_item><para/>
        ///     <bullet_item>Containment—Delete a containment association rule.</bullet_item><para/>
        ///     <bullet_item>Structural attachment—Delete a structural attachment association rule.</bullet_item><para/>
        ///     <bullet_item>Junction-edge connectivity—Delete a junction-edge connectivity rule.</bullet_item><para/>
        ///     <bullet_item>Edge-junction-edge connectivity—Delete an edge-junction-edge connectivity rule.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>要删除的规则类型。</para>
        ///   <bulletList>
        ///     <bullet_item>全部 （All） - 删除所有规则。</bullet_item><para/>
        ///     <bullet_item>交汇点-交汇点连通性 - 删除交汇点-交汇点连通性关联规则。</bullet_item><para/>
        ///     <bullet_item>包含 （Containment） - 删除包含关联规则。</bullet_item><para/>
        ///     <bullet_item>结构附件 （Structural attachment） - 删除结构附件关联规则。</bullet_item><para/>
        ///     <bullet_item>交汇点-边连通性 - 删除交汇点-边连通性规则。</bullet_item><para/>
        ///     <bullet_item>边-交汇点-边连通性 - 删除边-交汇点-边连通性规则。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// </param>
        public DeleteRule(object _in_utility_network, _rule_type_value? _rule_type)
        {
            this._in_utility_network = _in_utility_network;
            this._rule_type = _rule_type;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Delete Rule";

        public override string CallName => "un.DeleteRule";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _rule_type.GetGPValue(), _rule_desc, _out_utility_network];

        /// <summary>
        /// <para>Input Utility Network</para>
        /// <para>The utility network for which the rule will be removed.</para>
        /// <para>将移除其规则的公共设施网络。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Utility Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Rule Type</para>
        /// <para><xdoc>
        ///   <para>The type of rule being deleted.</para>
        ///   <bulletList>
        ///     <bullet_item>All—Delete all rules.</bullet_item><para/>
        ///     <bullet_item>Junction-junction connectivity—Delete a junction-junction connectivity association rule.</bullet_item><para/>
        ///     <bullet_item>Containment—Delete a containment association rule.</bullet_item><para/>
        ///     <bullet_item>Structural attachment—Delete a structural attachment association rule.</bullet_item><para/>
        ///     <bullet_item>Junction-edge connectivity—Delete a junction-edge connectivity rule.</bullet_item><para/>
        ///     <bullet_item>Edge-junction-edge connectivity—Delete an edge-junction-edge connectivity rule.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>要删除的规则类型。</para>
        ///   <bulletList>
        ///     <bullet_item>全部 （All） - 删除所有规则。</bullet_item><para/>
        ///     <bullet_item>交汇点-交汇点连通性 - 删除交汇点-交汇点连通性关联规则。</bullet_item><para/>
        ///     <bullet_item>包含 （Containment） - 删除包含关联规则。</bullet_item><para/>
        ///     <bullet_item>结构附件 （Structural attachment） - 删除结构附件关联规则。</bullet_item><para/>
        ///     <bullet_item>交汇点-边连通性 - 删除交汇点-边连通性规则。</bullet_item><para/>
        ///     <bullet_item>边-交汇点-边连通性 - 删除边-交汇点-边连通性规则。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Rule Type")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _rule_type_value? _rule_type { get; set; }

        public enum _rule_type_value
        {
            /// <summary>
            /// <para>All</para>
            /// <para>All—Delete all rules.</para>
            /// <para>全部 （All） - 删除所有规则。</para>
            /// </summary>
            [Description("All")]
            [GPEnumValue("ALL")]
            _ALL,

            /// <summary>
            /// <para>Junction-junction connectivity</para>
            /// <para>Junction-junction connectivity—Delete a junction-junction connectivity association rule.</para>
            /// <para>交汇点-交汇点连通性 - 删除交汇点-交汇点连通性关联规则。</para>
            /// </summary>
            [Description("Junction-junction connectivity")]
            [GPEnumValue("JUNCTION_JUNCTION_CONNECTIVITY")]
            _JUNCTION_JUNCTION_CONNECTIVITY,

            /// <summary>
            /// <para>Junction-edge connectivity</para>
            /// <para>Junction-edge connectivity—Delete a junction-edge connectivity rule.</para>
            /// <para>交汇点-边连通性 - 删除交汇点-边连通性规则。</para>
            /// </summary>
            [Description("Junction-edge connectivity")]
            [GPEnumValue("JUNCTION_EDGE_CONNECTIVITY")]
            _JUNCTION_EDGE_CONNECTIVITY,

            /// <summary>
            /// <para>Containment</para>
            /// <para>Containment—Delete a containment association rule.</para>
            /// <para>包含 （Containment） - 删除包含关联规则。</para>
            /// </summary>
            [Description("Containment")]
            [GPEnumValue("CONTAINMENT")]
            _CONTAINMENT,

            /// <summary>
            /// <para>Structural attachment</para>
            /// <para>Structural attachment—Delete a structural attachment association rule.</para>
            /// <para>结构附件 （Structural attachment） - 删除结构附件关联规则。</para>
            /// </summary>
            [Description("Structural attachment")]
            [GPEnumValue("STRUCTURAL_ATTACHMENT")]
            _STRUCTURAL_ATTACHMENT,

            /// <summary>
            /// <para>Edge-junction-edge connectivity</para>
            /// <para>Edge-junction-edge connectivity—Delete an edge-junction-edge connectivity rule.</para>
            /// <para>边-交汇点-边连通性 - 删除边-交汇点-边连通性规则。</para>
            /// </summary>
            [Description("Edge-junction-edge connectivity")]
            [GPEnumValue("EDGE_JUNCTION_EDGE_CONNECTIVITY")]
            _EDGE_JUNCTION_EDGE_CONNECTIVITY,

        }

        /// <summary>
        /// <para>Rules</para>
        /// <para><xdoc>
        ///   <para>Specifies which rule to remove. This includes the rule ID and the description of the rule.
        ///   <para>You can find the rule ID by browsing the Rules section of the Network Properties, which is available on the Layer Properties dialog box.</para>
        ///   </para>
        /// </xdoc></para>
        /// <para><xdoc>
        /// <para>指定要删除的规则。这包括规则 ID 和规则说明。
        ///   <para>您可以通过浏览网络属性的规则部分来查找规则 ID，该部分位于图层属性 对话框中。</para>
        ///   </para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Rules")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _rule_desc { get; set; } = null;


        /// <summary>
        /// <para>Updated Utility Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Utility Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        public DeleteRule SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}